package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class QuestionnaireStatisticalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public QuestionnaireStatisticalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andQuestionnaireidIsNull() {
            addCriterion("questionnaireId is null");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidIsNotNull() {
            addCriterion("questionnaireId is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidEqualTo(Integer value) {
            addCriterion("questionnaireId =", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidNotEqualTo(Integer value) {
            addCriterion("questionnaireId <>", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidGreaterThan(Integer value) {
            addCriterion("questionnaireId >", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidGreaterThanOrEqualTo(Integer value) {
            addCriterion("questionnaireId >=", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidLessThan(Integer value) {
            addCriterion("questionnaireId <", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidLessThanOrEqualTo(Integer value) {
            addCriterion("questionnaireId <=", value, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidIn(List<Integer> values) {
            addCriterion("questionnaireId in", values, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidNotIn(List<Integer> values) {
            addCriterion("questionnaireId not in", values, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidBetween(Integer value1, Integer value2) {
            addCriterion("questionnaireId between", value1, value2, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andQuestionnaireidNotBetween(Integer value1, Integer value2) {
            addCriterion("questionnaireId not between", value1, value2, "questionnaireid");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsIsNull() {
            addCriterion("publishObjects is null");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsIsNotNull() {
            addCriterion("publishObjects is not null");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsEqualTo(String value) {
            addCriterion("publishObjects =", value, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsNotEqualTo(String value) {
            addCriterion("publishObjects <>", value, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsGreaterThan(String value) {
            addCriterion("publishObjects >", value, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsGreaterThanOrEqualTo(String value) {
            addCriterion("publishObjects >=", value, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsLessThan(String value) {
            addCriterion("publishObjects <", value, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsLessThanOrEqualTo(String value) {
            addCriterion("publishObjects <=", value, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsLike(String value) {
            addCriterion("publishObjects like", value, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsNotLike(String value) {
            addCriterion("publishObjects not like", value, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsIn(List<String> values) {
            addCriterion("publishObjects in", values, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsNotIn(List<String> values) {
            addCriterion("publishObjects not in", values, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsBetween(String value1, String value2) {
            addCriterion("publishObjects between", value1, value2, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andPublishobjectsNotBetween(String value1, String value2) {
            addCriterion("publishObjects not between", value1, value2, "publishobjects");
            return (Criteria) this;
        }

        public Criteria andNumberIsNull() {
            addCriterion("number is null");
            return (Criteria) this;
        }

        public Criteria andNumberIsNotNull() {
            addCriterion("number is not null");
            return (Criteria) this;
        }

        public Criteria andNumberEqualTo(Integer value) {
            addCriterion("number =", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotEqualTo(Integer value) {
            addCriterion("number <>", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThan(Integer value) {
            addCriterion("number >", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("number >=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThan(Integer value) {
            addCriterion("number <", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThanOrEqualTo(Integer value) {
            addCriterion("number <=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberIn(List<Integer> values) {
            addCriterion("number in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotIn(List<Integer> values) {
            addCriterion("number not in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberBetween(Integer value1, Integer value2) {
            addCriterion("number between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("number not between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberIsNull() {
            addCriterion("notChooseNumber is null");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberIsNotNull() {
            addCriterion("notChooseNumber is not null");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberEqualTo(Integer value) {
            addCriterion("notChooseNumber =", value, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberNotEqualTo(Integer value) {
            addCriterion("notChooseNumber <>", value, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberGreaterThan(Integer value) {
            addCriterion("notChooseNumber >", value, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("notChooseNumber >=", value, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberLessThan(Integer value) {
            addCriterion("notChooseNumber <", value, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberLessThanOrEqualTo(Integer value) {
            addCriterion("notChooseNumber <=", value, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberIn(List<Integer> values) {
            addCriterion("notChooseNumber in", values, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberNotIn(List<Integer> values) {
            addCriterion("notChooseNumber not in", values, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberBetween(Integer value1, Integer value2) {
            addCriterion("notChooseNumber between", value1, value2, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andNotchoosenumberNotBetween(Integer value1, Integer value2) {
            addCriterion("notChooseNumber not between", value1, value2, "notchoosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberIsNull() {
            addCriterion("chooseNumber is null");
            return (Criteria) this;
        }

        public Criteria andChoosenumberIsNotNull() {
            addCriterion("chooseNumber is not null");
            return (Criteria) this;
        }

        public Criteria andChoosenumberEqualTo(Integer value) {
            addCriterion("chooseNumber =", value, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberNotEqualTo(Integer value) {
            addCriterion("chooseNumber <>", value, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberGreaterThan(Integer value) {
            addCriterion("chooseNumber >", value, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("chooseNumber >=", value, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberLessThan(Integer value) {
            addCriterion("chooseNumber <", value, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberLessThanOrEqualTo(Integer value) {
            addCriterion("chooseNumber <=", value, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberIn(List<Integer> values) {
            addCriterion("chooseNumber in", values, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberNotIn(List<Integer> values) {
            addCriterion("chooseNumber not in", values, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberBetween(Integer value1, Integer value2) {
            addCriterion("chooseNumber between", value1, value2, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andChoosenumberNotBetween(Integer value1, Integer value2) {
            addCriterion("chooseNumber not between", value1, value2, "choosenumber");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalIsNull() {
            addCriterion("detailedStatistical is null");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalIsNotNull() {
            addCriterion("detailedStatistical is not null");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalEqualTo(String value) {
            addCriterion("detailedStatistical =", value, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalNotEqualTo(String value) {
            addCriterion("detailedStatistical <>", value, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalGreaterThan(String value) {
            addCriterion("detailedStatistical >", value, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalGreaterThanOrEqualTo(String value) {
            addCriterion("detailedStatistical >=", value, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalLessThan(String value) {
            addCriterion("detailedStatistical <", value, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalLessThanOrEqualTo(String value) {
            addCriterion("detailedStatistical <=", value, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalLike(String value) {
            addCriterion("detailedStatistical like", value, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalNotLike(String value) {
            addCriterion("detailedStatistical not like", value, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalIn(List<String> values) {
            addCriterion("detailedStatistical in", values, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalNotIn(List<String> values) {
            addCriterion("detailedStatistical not in", values, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalBetween(String value1, String value2) {
            addCriterion("detailedStatistical between", value1, value2, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andDetailedstatisticalNotBetween(String value1, String value2) {
            addCriterion("detailedStatistical not between", value1, value2, "detailedstatistical");
            return (Criteria) this;
        }

        public Criteria andIndexscoreIsNull() {
            addCriterion("indexScore is null");
            return (Criteria) this;
        }

        public Criteria andIndexscoreIsNotNull() {
            addCriterion("indexScore is not null");
            return (Criteria) this;
        }

        public Criteria andIndexscoreEqualTo(String value) {
            addCriterion("indexScore =", value, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreNotEqualTo(String value) {
            addCriterion("indexScore <>", value, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreGreaterThan(String value) {
            addCriterion("indexScore >", value, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreGreaterThanOrEqualTo(String value) {
            addCriterion("indexScore >=", value, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreLessThan(String value) {
            addCriterion("indexScore <", value, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreLessThanOrEqualTo(String value) {
            addCriterion("indexScore <=", value, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreLike(String value) {
            addCriterion("indexScore like", value, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreNotLike(String value) {
            addCriterion("indexScore not like", value, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreIn(List<String> values) {
            addCriterion("indexScore in", values, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreNotIn(List<String> values) {
            addCriterion("indexScore not in", values, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreBetween(String value1, String value2) {
            addCriterion("indexScore between", value1, value2, "indexscore");
            return (Criteria) this;
        }

        public Criteria andIndexscoreNotBetween(String value1, String value2) {
            addCriterion("indexScore not between", value1, value2, "indexscore");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeIsNull() {
            addCriterion("statisticalTime is null");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeIsNotNull() {
            addCriterion("statisticalTime is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeEqualTo(String value) {
            addCriterion("statisticalTime =", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotEqualTo(String value) {
            addCriterion("statisticalTime <>", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeGreaterThan(String value) {
            addCriterion("statisticalTime >", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeGreaterThanOrEqualTo(String value) {
            addCriterion("statisticalTime >=", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeLessThan(String value) {
            addCriterion("statisticalTime <", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeLessThanOrEqualTo(String value) {
            addCriterion("statisticalTime <=", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeLike(String value) {
            addCriterion("statisticalTime like", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotLike(String value) {
            addCriterion("statisticalTime not like", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeIn(List<String> values) {
            addCriterion("statisticalTime in", values, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotIn(List<String> values) {
            addCriterion("statisticalTime not in", values, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeBetween(String value1, String value2) {
            addCriterion("statisticalTime between", value1, value2, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotBetween(String value1, String value2) {
            addCriterion("statisticalTime not between", value1, value2, "statisticaltime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}